package com.lu.bean.impl;

import com.lu.bean.User;

public class UserImpl implements User {
    private String name;
    private int age;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public UserImpl() {
    }

    public UserImpl(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public void name() {
        System.out.println("我是UserImpl");
    }

    @Override
    public String toString() {
        return "UserImpl{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
